<?php
include_once( "_PATH.php");
?>
<?php
$_FBAPIKEY = '4643800cca86369bf8e8581d9a3f219a';
$_FBAPISECRET  = '7bd31a87520eb3ac232e30cf602886ca';

require_once( $_LIBPATH . "/facebook/facebook.php");

function & getFacebookClient() {
	if ( isset( $_SESSION["fb"] ) )
		$fb = & $_SESSION["fb"];
	else {
		global $_FBAPIKEY, $_FBAPISECRET;
		$fb = new Facebook( $_FBAPIKEY, $_FBAPISECRET );
		$_SESSION["fb"] = & $fb;
	}
	return $fb;
}
?>